package com.wikikii.bannerlib.banner.util;

import ohos.agp.utils.TextTool;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class L {
    private static boolean deBug = false;
    private static String TAG = "LoopView";

    /**
     * makeLabel
     *
     * @param tag 标签
     * @return HiLogLabel
     */
    public static HiLogLabel makeLabel(String tag) {
        if (TextTool.isNullOrEmpty(tag)) {
            tag = TAG;
        }
        return new HiLogLabel(HiLog.LOG_APP, 0x00201, tag);
    }

    /**
     * loge
     *
     * @param msg 消息内容
     */
    public static void e(String msg) {
        if (deBug) {
            HiLog.error(makeLabel(null), msg);
        }
    }
}
